<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <script type="text/javascript">
        function check_input(form)
        {
          if(form.username.value=="") {
                 alert('请输入当前管理员登录名!');
                 form.username.select();
                 return(false);
           }
          if(form.password1.value=="") {
                 alert('请输入当前管理员密码!');
                 form.password1.select();
                 return(false);
           }
           if(form.password2.value=="") {
                 alert('请输入新密码!');
                 form.password2.select();
                 return(false);
           }
           if(form.password3.value=="") {
                 alert('请再输入一次新密码!');
                 form.password3.select();
                 return(false);
           }
           if(form.password3.value!=form.password2.value) {
                 alert('两次输入密码不一致!');
                 form.password3.select();
                 return(false);
           }
          return(true);
        }
    </script>
    <body>
        <?php
        // put your code here
        ?>
        <table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td height="20" bgcolor="#B0E0E6">
                    <div align="center">
                        修改管理员密码
                    </div>
                </td>
            </tr>
            <tr>
                <td bgcolor="#666666">
                    <table width="720" border="0" cellpadding="0" cellspacing="1">
                        <form name="form1" enctype="multipart/form-data" method="post" action="savechangedadminpwd.php" onSubmit="return check_input(this)">
                            <tr>
                                <td width="159" height="25" bgcolor="#FFFFFF">
                                    <div align="center">
                                        当前管理员登录名：
                                    </div>
                                </td>
                                <td width="618" bgcolor="#FFFFFF">
                                    <div align="left">
                                        <input name="username" size="20" maxlength="18" placeholder="请输入当前管理员登录名">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td width="159" height="25" bgcolor="#FFFFFF">
                                    <div align="center">
                                        当前管理员密码：
                                    </div>
                                </td>
                                <td width="618" bgcolor="#FFFFFF">
                                    <div align="left">
                                        <input type="password" name="password1" size="20" maxlength="18" placeholder="请输入当前管理员密码">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td height="25" bgcolor="#FFFFFF">
                                    <div align="center">
                                        新密码：
                                    </div>
                                </td>
                                <td height="25" bgcolor="#FFFFFF">
                                    <div align="left">
                                        <input type="password" name="password2" size="20" maxlength="18" placeholder="请输入新密码">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td height="25" bgcolor="#FFFFFF">
                                    <div align="center">
                                        确认新密码：
                                    </div>
                                </td>
                                <td height="25" bgcolor="#FFFFFF">
                                    <div align="left">
                                        <input type="password" name="password3" size="20" maxlength="18" placeholder="请再输入一次新密码">
                                    </div>
                                </td>
                            </tr>
                            <tr>
                              <td height="25" colspan="2" bgcolor="#FFFFFF">
                                  <div align="center">
                                      <input name="submit" type="submit" value="修改">
                                      &nbsp;&nbsp;
                                      <input type="reset" value="重置">
                                  </div>
                              </td>
                            </tr>
                    </form>
                    </table>
                </td>
            </tr>
        </table>
    </body>
</html>
